﻿<%@ Page Language="C#" MasterPageFile="~/Views/Shared/MotaSiteStandard.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="indexTitle" ContentPlaceHolderID="TitleContent" runat="server">
    MoTA - Home
</asp:Content>
<asp:Content ID="indexContent" ContentPlaceHolderID="MainContent" runat="server">
    <div id="slideshow">
        <% 
            int count = 0;
            foreach (var imageName in ViewData["ImageList"] as List<string>) {
                count++;
        %>
            <img src="../../Content/Images/Slideshow/<%= imageName %>" alt="Slideshow" class="<%= (count == 1 ? "active" : "") %>"/>
        <%} %>
    </div>
    <div id="messages">
        <div id="message">
            <%= Html.ActionLink(Html.Encode(ViewData["Message"]), "Events", "What") %>
        </div>
        <div id="submessage">
            <a href="http://www.textweek.com" target="_blank"><%= Html.Encode(ViewData["SubMessage"]) %></a>
        </div>
    </div>
</asp:Content>
